/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * InfoHabitacion.java
 *
 * Created on 24/06/2010, 11:11:38 AM
 */

package CapaGrafica;
import CapaDatos.Fecha;

/**
 *
 * @author Maria
 */
public class InfoHabitacion extends javax.swing.JFrame {
      private Fecha hoy;
      private Fecha mañana;
    /** Creates new form InfoHabitacion */
    public InfoHabitacion() {
        long dia = 86400000; //milisegundos
        hoy    = new Fecha();
        mañana = new Fecha();
        mañana.setTimeInMillis(hoy.getTimeInMillis() + dia);

        initComponents();

        jDCfechaInicio.setMinSelectableDate(hoy.getTime());
        jDCfechaFin.setMinSelectableDate(mañana.getTime());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jBconsultar = new javax.swing.JButton();
        jBregresar = new javax.swing.JButton();
        jLtipoDeHabitacion = new javax.swing.JLabel();
        jLsuperficie = new javax.swing.JLabel();
        jLestadoActual = new javax.swing.JLabel();
        jLdisponibilidad = new javax.swing.JLabel();
        jLeIDHabitacion = new javax.swing.JLabel();
        jLeMcuadrados = new javax.swing.JLabel();
        jLeEstadoActual = new javax.swing.JLabel();
        jLeTipoHab = new javax.swing.JLabel();
        jDCfechaFin = new com.toedter.calendar.JDateChooser();
        jDCfechaInicio = new com.toedter.calendar.JDateChooser();
        jSeparator1 = new javax.swing.JSeparator();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jBconsultar.setText("Consultar");
        jBconsultar.setName("jBconsultar"); // NOI18N

        jBregresar.setText("Regresar");
        jBregresar.setName("jBregresar"); // NOI18N

        jLtipoDeHabitacion.setText("Tipo de habitacion:");
        jLtipoDeHabitacion.setName("jLtipoDeHabitacion"); // NOI18N

        jLsuperficie.setText("Superficie:");
        jLsuperficie.setName("jLsuperficie"); // NOI18N

        jLestadoActual.setText("Estado actual:");
        jLestadoActual.setName("jLestadoActual"); // NOI18N

        jLdisponibilidad.setText("Disponible:");
        jLdisponibilidad.setName("jLdisponibilidad"); // NOI18N

        jLeIDHabitacion.setText("jLabel5");
        jLeIDHabitacion.setName("jLeIDHabitacion"); // NOI18N

        jLeMcuadrados.setText("jLabel6");
        jLeMcuadrados.setName("jLeMcuadrados"); // NOI18N

        jLeEstadoActual.setText("jLabel7");
        jLeEstadoActual.setName("jLeEstadoActual"); // NOI18N

        jLeTipoHab.setText("jLabel8");
        jLeTipoHab.setName("jLeTipoHab"); // NOI18N

        jDCfechaFin.setName("jDCfechaFin"); // NOI18N

        jDCfechaInicio.setName("jDCfechaInicio"); // NOI18N

        jSeparator1.setName("jSeparator1"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLdisponibilidad)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(29, 29, 29)
                        .addComponent(jBconsultar)
                        .addGap(120, 120, 120)
                        .addComponent(jBregresar))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLtipoDeHabitacion)
                            .addComponent(jLsuperficie)
                            .addComponent(jLestadoActual)
                            .addComponent(jDCfechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(99, 99, 99)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jDCfechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLeEstadoActual)
                            .addComponent(jLeMcuadrados)
                            .addComponent(jLeIDHabitacion)
                            .addComponent(jLeTipoHab))))
                .addContainerGap(79, Short.MAX_VALUE))
            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(42, 42, 42)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jDCfechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jDCfechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(29, 29, 29)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLtipoDeHabitacion)
                    .addComponent(jLeIDHabitacion))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLsuperficie)
                    .addComponent(jLeMcuadrados))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLestadoActual)
                    .addComponent(jLeEstadoActual))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLdisponibilidad)
                    .addComponent(jLeTipoHab))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBregresar)
                    .addComponent(jBconsultar))
                .addGap(26, 26, 26))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBconsultar;
    private javax.swing.JButton jBregresar;
    private com.toedter.calendar.JDateChooser jDCfechaFin;
    private com.toedter.calendar.JDateChooser jDCfechaInicio;
    private javax.swing.JLabel jLdisponibilidad;
    private javax.swing.JLabel jLeEstadoActual;
    private javax.swing.JLabel jLeIDHabitacion;
    private javax.swing.JLabel jLeMcuadrados;
    private javax.swing.JLabel jLeTipoHab;
    private javax.swing.JLabel jLestadoActual;
    private javax.swing.JLabel jLsuperficie;
    private javax.swing.JLabel jLtipoDeHabitacion;
    private javax.swing.JSeparator jSeparator1;
    // End of variables declaration//GEN-END:variables

}
